package com.xnyzc.lhy.mis.controller.cmsapi.user.wallet;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.mis.entity.param.cms.user.wallet.CmsOacUserRechargeParam;
import com.xnyzc.lhy.mis.service.cms.user.wallet.IOacRechargeRecordService;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 用户充值记录管理
 * @Author conglijuan
 * @Date 2019-08-20 16:13
 **/
@RestController
@RequestMapping(value = "cmsapi/user/recharge")
public class OacUserRechargeRecordController {

    @Autowired
    private IOacRechargeRecordService iOacRechargeRecordService;


    /**
     * 获取用户充值记录列表
     * @return
     */
    @PostMapping(value = "getRechargeList")
    public Rv getRechargeList(@ApiParam(name = "cmsOacUserRechargeParam", value = "入参") @RequestBody CmsOacUserRechargeParam cmsOacUserRechargeParam){
        return iOacRechargeRecordService.getRechargeList(cmsOacUserRechargeParam);
    }

    /**
     * 导出
     * @return
     */
    @PostMapping(value = "exportUserRechargeExcel")
    public Rv exportUserRechargeExcel(@RequestBody CmsOacUserRechargeParam cmsOacUserRechargeParam){
        return iOacRechargeRecordService.exportUserRechargeExcel(cmsOacUserRechargeParam);
    }
}
